package j01gouzao;

public class J02this {
}
//调用自己的构造方法
class Fa{
    public Fa(){
        System.out.println("==fa构造==");
    }
}
class Ch extends Fa{
    public Ch(){
        //super();//可省略
        //this *,调用其他构造时，必须时第一行语句(只能调一次)
        this(56);
        //this(56);

        System.out.println("==ch构造==");
    }

    public Ch(int a){
        System.out.println("ch构造重载，a="+a);
    }
}

class ChTest{
    public static void main(String[] args) {
        Ch c1 = new Ch();
    }

}
